//
//  OwnerInfoCalloutView.h
//  PhongThuyHuongNha
//
//  Created by Le Anh Tai on 10/19/13.
//  Copyright (c) 2013 Le Anh Tai. All rights reserved.
//

#import "CalloutView.h"
#import "FlatDatePicker.h"
#import "SevenSwitch.h"

#define OWNER_INFO_HEIGHT_BUTTON 35

@protocol OwnerInfoCalloutViewDelegate;
@interface OwnerInfoCalloutView : CalloutView<FlatPickerDelegate>
{
    UIView *_subView;
    
    UILabel *_birthdayLabel;
    UILabel *_genderLabel;
    FlatDatePicker *_birthdayPicker;
    SevenSwitch *_genderSwitch;
}

@property (nonatomic, strong) NSDate *birthday;
@property (nonatomic, assign) BOOL isMale;
@property (nonatomic, assign) BOOL isAmLich;
@property (nonatomic, assign) id<OwnerInfoCalloutViewDelegate> delegate;
@property (nonatomic, readonly) NSInteger calculatedHeight;

- (void)close;
- (void)showInView:(UIView*)view;
- (UIView*)subView;

@end

@protocol OwnerInfoCalloutViewDelegate <NSObject>

@optional
- (void)OwnerInfoCalloutViewDidPressedXemButton:(OwnerInfoCalloutView*)view;
- (void)OwnerInfoCalloutViewDidPressedBatTrachButton:(OwnerInfoCalloutView*)view;
- (void)OwnerInfoCalloutViewDidPressedExplainationButton:(OwnerInfoCalloutView*)view;
- (void)OwnerInfoCalloutViewDidPressedOutSide:(OwnerInfoCalloutView*)view;
- (void)OwnerInfoCalloutViewDidClosed:(OwnerInfoCalloutView*)view;
@end
